import axios from 'axios';



const service=axios.create({
    baseURL:"/api",
    timeout:1000
})

service.interceptors.request.use(config=>{
 return config   
},error=>{
    return Promise.reject(error)
})
service.interceptors.response.use(response=>response.data,
    error=>{
     return Promise.reject(error)
        
    })
export default service